﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace VisionOperationTemplate
{
    /// <summary>
    /// CustomWindow.xaml 的交互逻辑
    /// </summary>
    public partial class CustomWindow : Window
    {
        /// <summary>
        /// 创建CustomWindow新实例
        /// </summary>
        /// <param name="visionOperation"></param>
        public CustomWindow(VisionOperation visionOperation)
        {
            InitializeComponent();

            VisionOperation = visionOperation;
        }

        /// <summary>
        /// 视觉算子
        /// </summary>
        public VisionOperation VisionOperation { get; set; }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ContentControl.Content = VisionOperation.RunningWindow;
        }

        private void Window_Closed(object sender, EventArgs e)
        {

        }
    }
}
